# -*- coding:utf-8 -*-
""" A demo to test  exception"""
try:
    data = open('missing.txt')
    print(data.readline(),end='')
except IOError as err:
    print('File Error' + str(err))
finally:
    if 'data' in locals():
        data.close()
